<template>
    <div class="doctor_main">
        <header>
            <div class="doc_item">
                <div class="info_l">
                    <van-image
                        width="50"
                        round
                        height="50"
                        src="https://img.yzcdn.cn/vant/cat.jpeg"
                    />
                </div>
                <div class="info_r">
                    <p>
                        <span class="title">沈宁</span>
                    </p>
                    <p>
                        <span class="desc">主任医师 | 内科</span>
                    </p>
                    <p>
                        中国医科大学附属第一医院
                        <span class="tag">三级甲等</span>
                    </p>
                    <div class="enter">电子执照>></div>
                </div>
            </div>
            <div class="info_card">
                <div class="top">
                    <div class="top_item">
                        <p>297 <span>例</span></p>
                        <p>门诊接诊人数</p>
                    </div>
                    <div class="top_item">
                        <p>297 <span>例</span></p>
                        <p>手术例数</p>
                    </div>
                    <div class="top_item">
                        <p>297 <span>例</span></p>
                        <p>住院收治人数</p>
                    </div>
                </div>
                <div class="bottom">
                    <van-icon name="notes-o" color="999" size="16"></van-icon>
                    <span>数据来源 | 江苏省全民健康信息平台</span>
                    <span>（2015年至今）</span>
                </div>
            </div>
        </header>
        <van-cell title="医生专业专长" style="margin-top: 70px"></van-cell>
        <div class="skill_main">
            <div class="title">江苏省第二中医院</div>
            <div class="rank_item">
                <div class="title">门诊诊断排名：</div>
                <div class="item_main">
                    <div class="card">
                        <div class="count">20345例</div>
                        <div>慢性阻塞性肺疾病</div>
                        <div class="rank">1</div>
                    </div>
                    <div class="card">
                        <div class="count">20345例</div>
                        <div>支气管炎</div>
                        <div class="rank">1</div>
                    </div>
                    <div class="card">
                        <div class="count">20345例</div>
                        <div>急性上呼吸道感染</div>
                        <div class="rank">1</div>
                    </div>
                </div>
            </div>
            <div class="rank_item">
                <div class="title">手术排名：</div>
                <div class="item_main">
                    <div class="card two">
                        <div class="count">20345例</div>
                        <div>慢性阻塞性肺疾病</div>
                        <div class="rank two">1</div>
                    </div>
                    <div class="card two">
                        <div class="count">20345例</div>
                        <div>支气管炎</div>
                        <div class="rank two">1</div>
                    </div>
                    <div class="card two">
                        <div class="count">20345例</div>
                        <div>急性上呼吸道感染</div>
                        <div class="rank two">1</div>
                    </div>
                </div>
            </div>
            <div class="rank_item">
                <div class="title">门诊诊断排名：</div>
                <div class="item_main">
                    <div class="card three">
                        <div class="count">20345例</div>
                        <div>慢性阻塞性肺疾病</div>
                        <div class="rank three">1</div>
                    </div>
                    <div class="card three">
                        <div class="count">20345例</div>
                        <div>支气管炎</div>
                        <div class="rank three">1</div>
                    </div>
                    <div class="card three">
                        <div class="count">20345例</div>
                        <div>急性上呼吸道感染</div>
                        <div class="rank three">1</div>
                    </div>
                </div>
            </div>
        </div>
        <van-cell title="医生简介" style="margin-top: 10px"></van-cell>
        <div class="info_main">医生的简介医生的简介医生的简介医生的简介</div>
        <van-cell
            title="xxx医生发表过的论文"
            style="margin-top: 10px"
        ></van-cell>
        <div class="article_main">
            <div class="main_item van-hairline--bottom">
                <div class="title">外科XXXXXXXXXXXXX</div>
                <div class="desc">
                    <p>发表刊物：<span>柳叶刀</span></p>
                    <p>发表时间：017-08-14</p>
                </div>
            </div>
            <div class="main_item van-hairline--bottom">
                <div class="title">外科XXXXXXXXXXXXX</div>
                <div class="desc">
                    <p>发表刊物：<span>柳叶刀</span></p>
                    <p>发表时间：017-08-14</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    mounted() {
        const title = this.$router.currentRoute.query.name + "医生";
        this.$store.dispatch("ToggleTitle", { title });
    }
};
</script>

<style lang="less" scoped>
.doctor_main {
    overflow-x: hidden;
}
header {
    width: 100%;
    height: 200px;
    background: #00aac6;
    position: relative;
}
.doc_item {
    padding-top: 20px;
    background: transparent;
    .tag {
        background: rgba(0, 0, 0, 0.1);
        border: 0;
        font-size: 12px;
        border-radius: 15px;
        width: 80px;
        height: 25px;
        line-height: 25px;
        color: #a6fd19;
    }
    .title {
        color: #fff;
        font-size: 18px;
    }
    p {
        font-size: 14px;
        color: #fff;
    }
    .enter {
        position: absolute;
        right: -1px;
        color: #fff;
        border-radius: 10px 0 0 10px;
        border: 1px solid #fff;
        font-size: 12px;
        width: 80px;
        line-height: 20px;
        height: 20px;
        top: 40px;
        text-align: center;
    }
}

.info_card {
    width: 90vw;
    height: 120px;
    border-radius: 10px;
    background: #fff;
    position: absolute;
    left: 5vw;
    bottom: -60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    .top {
        width: 100%;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        .top_item {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            p {
                color: #333;
                margin: 0;
                font-size: 20px;
                font-weight: 500;
                span {
                    font-size: 14px;
                    color: #999;
                }
                &:nth-of-type(2) {
                    font-weight: normal;
                    font-size: 14px;
                    color: #999;
                }
            }
        }
    }
    .bottom {
        width: 90%;
        margin: 0 5%;
        border-top: 1px solid #ebebe8;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 12px;
        color: #00aac6;
        span:nth-of-type(1) {
            margin-left: 5px;
        }
        span:nth-of-type(2) {
            color: #999;
        }
    }
}

.skill_main {
    background: #fff;
    padding: 10px;
    padding-top: 30px;
    .title {
        color: #333;
        font-size: 16px;
        font-weight: 500;
    }
    .rank_item {
        margin-top: 10px;
        width: 100%;
        min-height: 60px;
        .title {
            color: #999;
            font-size: 12px;
            margin-bottom: 10px;
        }
        .item_main {
            width: 100%;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            .card {
                width: 30%;
                height: 60px;
                margin-right: 5%;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                font-size: 12px;
                background: linear-gradient(#fbe8e4, #fbe4e3);
                position: relative;
                &.two {
                    background: linear-gradient(#fce4da, #faead9);
                }
                &.three {
                    background: linear-gradient(#ebf2fb, #e3f1fa);
                }
                &:last-of-type {
                    margin: 0;
                }
                .count {
                    color: #999;
                    width: 100%;
                    text-align: right;
                    padding-right: 4px;
                    box-sizing: border-box;
                }
                .count + div {
                    width: 100%;
                    text-align: right;
                    margin-top: 2px;
                    padding-right: 4px;
                    box-sizing: border-box;
                }
                .rank {
                    position: absolute;
                    width: 15px;
                    height: 18px;
                    border-radius: 0 0 10px 10px;
                    background: #f50;
                    color: #fff;
                    top: 0;
                    left: 10px;
                    text-align: center;
                    line-height: 18px;
                    &.two {
                        background: #fbd405;
                    }
                    &.three {
                        background: #8196f3;
                    }
                }
            }
        }
    }
}
.info_main {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    color: 666;
    background: #fff;
}
.article_main {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    color: 666;
    background: #fff;
    .main_item {
        width: 100%;
        height: 60px;
        padding: 5px 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        .title,
        .desc {
            width: 100%;
        }
        .title {
            flex: 1;
            font-size: 16px;
            color: #333;
        }
        .desc {
            color: #999;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            p {
                margin: 0;
                span {
                    color: #00aac6;
                }
            }
        }
    }
}
</style>
